package com.bao.shop.entity;

import java.util.ArrayList;

/**
 * @author baoye
 * @date 2024-07-25/19:21
 */
public class Cart {
    private String userName;
    private ArrayList<Goods> goodsList;

    public Cart() {
    }

    public Cart(String userName, ArrayList<Goods> goodsList) {
        this.userName = userName;
        this.goodsList = goodsList;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public ArrayList<Goods> getGoodsList() {
        return goodsList;
    }

    public void setGoodsList(ArrayList<Goods> goodsList) {
        this.goodsList = goodsList;
    }

    @Override
    public String toString() {
        return "Cart{" +
                "userName='" + userName + '\'' +
                ", goodsList=" + goodsList +
                '}';
    }
}
